<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListUser.aspx.cs" MasterPageFile="~/Admin/MasterPage.master" 
Inherits="Admin_Users_ListUser" %>

<%@ Register TagPrefix="pc" Namespace="Pyco.Web.UI.WebControls" Assembly="Pyco.Web" %>
<%@ Register TagPrefix="fbconnect" Src="~/Admin/UserControls/UserActionMenu.ascx" TagName="useractionmenu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="titlePlaceHolder" Runat="Server">
    <link rel="stylesheet" href="../css/tables.css" type="text/css" />
    <pc:stylesheet id="formStylesheet" runat="server" href="~/Admin/css/form.css"/>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
    <fbconnect:useractionmenu id="userActionMenu" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
    <asp:repeater runat="server" ID="UsersListRepeater">
        <HeaderTemplate>
            <table class="Grid" width="100%">
                <tr class="Head">
                    <td><a runat="server" id="nameHeaderLink">Username</a></td>
                    <td><a runat="server" id="emailHeaderLink">Email</a></td>
                    <td>Action</td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td><asp:literal runat="server" id="UserNameLiteral" /></td>
                <td><a runat="server" id="emailLink" /></td>
                <td>
                    <a runat="server" id="EditLink" title="Edit" ><img src="../images/edit.png" alt="Edit" style="border: none;" /></a>
                    <asp:imagebutton tooltip="Remove" imageurl="~/Admin/images/remove.png" runat="server" id="DeleteLink" commandname="DeleteUser" onclientclick="return confirm('Are you sure to delete this user?')" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
           </table>  
        </FooterTemplate>
    </asp:repeater>
    <pc:HyperLinkPager runat="server" ID="UserListPager" pagesize="5" parameter="CurrentPage" maxdisplaypages="5" />
</asp:Content>
